﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/functon.master" AutoEventWireup="true" CodeFile="Search_RoomCatagory.aspx.cs" Inherits="Search_RoomCatagory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="stylesheet" href="css/admir.css" />
     <link rel="stylesheet" href="css/astyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="admir_l">
        <br />
        <a href="Add_RoomCategory.aspx">增加房间信息</a><br />
        <a href="Search_RoomCatagory.aspx">查看房间信息</a><br />
        <a href="Update_RoomCategory.aspx">更改房间信息</a><br />
        <a href="Delete_RoomCategory.aspx">删除房间信息</a><br />
        <a href="Customers.aspx">查看客户信息</a><br />
        <a href="RoomCustomer.aspx">查看已住客房信息</a><br />
        <a href="RoomStatus.aspx">查看房间状态 </a>
    </div>
    <div class="admir_r">
         <table align="center">
            <tr>
                <td align="right">
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="RFloor" DataValueField="RFloor" Width="96px" Height="30px" BackColor="YellowGreen"></asp:DropDownList> 
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelManagementConnectionString %>" SelectCommand="SELECT [RFloor] FROM [HM_RoomDropDownList]"></asp:SqlDataSource>
                </td>
                <td align="left">
                    <asp:Button ID="Button1" runat="server" Text="显示" OnClick="Button1_Click" Width="120px" Height="30px" BackColor="YellowGreen"/>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
                    <Columns>
                         <asp:BoundField DataField="HM_RCategoryId" HeaderText="房间号" />
                        <asp:BoundField DataField="HM_RName" HeaderText="房间类型" />
                        <asp:BoundField DataField="HM_RArea" HeaderText="房间面积" />
                        <asp:BoundField DataField="HM_RBedNum" HeaderText="床位数" />
                        <asp:BoundField DataField="HM_RPrice" HeaderText="房间价格（天/元）" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                空调
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RAirCondition").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate> 
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                有线电视
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RTV").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                         <FooterStyle BackColor="White" ForeColor="#000066" />
                         <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                         <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                         <RowStyle ForeColor="#000066" />
                         <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                         <SortedAscendingCellStyle BackColor="#F1F1F1" />
                         <SortedAscendingHeaderStyle BackColor="#007DBB" />
                         <SortedDescendingCellStyle BackColor="#CAC9C9" />
                         <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                </td> 
            </tr>
        </table>
    </div>
       
</asp:Content>

